#include "apilib.h"

void HariMain(void)
{
    int win;
    char *buf;

    api_initmalloc();
    buf = api_malloc(150 * 50);
    win = api_win_create(buf, 150, 50, -1, "hello");
    api_win_boxfil(win, 8, 36, 141, 43, 6);
    api_win_putstr(win, 28, 28, 0, 12, "hello, world");
    for (;;)
    {
        if (api_getkey(1) == 0x0a)
            break;
    }
    api_exit();
}